#!/usr/bin/env python

import sys
import pickle

def main():
    a = ['abc', 14]
    print a
    file = open('tmp.bin', 'wb')
    pickle.dump(a, file)
    file.close()

    file = open('tmp.bin', 'rb')
    a = pickle.load(file)
    file.close()
    print a

if __name__ == '__main__':
    main()
